//============================================================
//write by bxl at 2021-06-27 14:38:47
//============================================================


using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.MallInterface.MallOrder
{
    /// <summary>
    /// 商城订单 数据模型
    /// </summary>
    [Table("mallorder")]
    public class MallOrderEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 商城订单Id
        /// </summary>
        public long MallOrderId { get; set; }

        /// <summary>
        /// 商城订单编号
        /// </summary>
        public string MallOrderNo { get; set; }

        /// <summary>
        /// 商城商户编号
        /// </summary>
        public string MallShopNo { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public string PayType { get; set; }

        /// <summary>
        /// 签收回单
        /// </summary>
        public bool? IsReturnSignBill { get; set; }

        /// <summary>
        /// 保价服务
        /// </summary>
        public bool IsInsuredPrice { get; set; }

        /// <summary>
        /// 保价金额
        /// </summary>
        public decimal? InsuredPrice { get; set; }


        /// <summary>
        /// 上门取货时间段启
        /// </summary>
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 上门取货时间段止
        /// </summary>
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public string MallOrderState { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 运输业务类型
        /// </summary>
        public string TransportBusinessType { set; get; }

        /// <summary>
        /// 订单需要拆分
        /// </summary>
        public bool IsNeedSplit { get; set; }

        /// <summary>
        /// 代理商网点配置Id
        /// </summary>
        public long? AgentBranchesConfigId { set; get; }

        /// <summary>
        /// 运输订单编号
        /// </summary>
        public string TransportOrderNo { set; get; }

        /// <summary>
        /// 运费
        /// </summary>
        public string TransportCost { set; get; }
    }
}
